/// <reference path="typings/gulp/gulp.d.ts" />

var gulp = require('gulp');

var uglify = require('gulp-uglify');


//压缩所有js
gulp.task('uglify', function () {
	return gulp.src('./Web/public/javascripts/**/*.js')
		.pipe(uglify())
		.pipe(gulp.dest('./Web/public/minjs'));
});


//压缩我的js代码
gulp.task('uglify-lib', function () {
	return gulp.src('./Web/public/javascripts/libraries/**/*.js')
		.pipe(uglify())
		.pipe(gulp.dest('./Web/public/minjs/libraries'));
});


gulp.task('default', ['uglify-lib']);